package com.cheers.service.impl;

import java.text.SimpleDateFormat;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;

public class AbstractServiceImpl {

	protected final Logger logger = LoggerFactory.getLogger(AbstractServiceImpl.class);
	protected final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	
	public Object getValue(Object value) {
		return StringUtils.isEmpty(value) ? "" : value;
	}
	public String getValue(String value) {
		return StringUtils.isEmpty(value) ? "" : ("null".equals(value.toLowerCase()) ? "" : value);
	}
	
}
